<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Customer_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-customer_id" data-rule="required" data-source="newhouse/customer/items/index" data-primary-key="id" data-field="customer_name" class="form-control selectpage" name="row[customer_id]" type="text" value="{$row.customer_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Building_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_id" data-rule="required" data-source="newhouse/building/items/index" data-primary-key="id" data-field="building_name" class="form-control selectpage" name="row[building_id]" type="text" value="{$row.building_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">报备人:</label>
        <div class="col-xs-12 col-sm-8 control-label" style="text-align: left">
            {$row.newhousecreateadmin.nickname}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >报备时间:</label>
        <div class="col-xs-12 col-sm-8 control-label" style="text-align: left">
            {:date('Y-m-d H:i',$row.newhousecreateadmin.createtime)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">报备说明:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[contents]" class="form-control">{$row.contents}</textarea>
        </div>
    </div>
   
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
